package pathplanning;

import machinery.Machinery;

/**
 * 策略模式：路径规划器上下文
 */
public class PathPlanner {
    private PathStrategy strategy;
    
    public PathPlanner() {
        // 默认使用标准路径规划策略
        this.strategy = new StandardPathStrategy();
    }
    
    public void setStrategy(PathStrategy strategy) {
        this.strategy = strategy;
    }
    
    public PathStrategy getStrategy() {
        return strategy;
    }
    
    public void planPath(Machinery machinery, String taskType) {
        strategy.planPath(machinery, taskType);
    }
} 